﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EventPlayAudio : MonoBehaviour
{
    public SoundType soundType;

    public void Play()
    {
        SoundManager.Instance.PlayAudio(soundType.ToString(), false);
    }


    public void PlayLoop()
    {
        SoundManager.Instance.PlayAudio(soundType.ToString(), false);
    }

    public void Play(SoundType _soundType)
    {
        SoundManager.Instance.PlayAudio(_soundType.ToString(), false);
    }


    public void PlayLoop(SoundType _soundType)
    {
        SoundManager.Instance.PlayAudio(_soundType.ToString(), false);
    }
}
